<script setup lang='ts'>
import journalItem from './journalItem.vue'

export interface IJournalOmit {
  id: number;
  content: string;
  m_id: number;
  u_id: number;
  photos: {
    url: string;
    index: number;
    min: string;
  };
  is_open: boolean;
}

defineProps<{
  list: IJournalOmit[];
}>()


</script>

<template>
  <div class='journal-list__container'>
    <journalItem v-for="item in list" :key="item.id" v-bind="item" />
  </div>
</template>

<style scoped lang='scss'>
.journal-list {
  &__container {
    overflow-y: scroll;
  }
}
</style>